<?php
$page_title = 'Xem Thiep';
include 'header.inc';
?>
<div id="mainContent">

    <div id="middleContent">
        <?php
        if (isset($_GET['id'])) {
            $thiep_gui_id = $_GET['id'];
            require_once 'connectvars.php';
            $dbc = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
            $data = mysqli_query($dbc, "SELECT * FROM tbl_guithiep WHERE guithiep_id = $thiep_gui_id");
            $thiep_gui = mysqli_fetch_array($data);

        ?>
        <table width="500" border="1" style="margin: 0 auto">
            <tr>
                <td style="text-align: center">
                    <p></p>
                    <h2><?php echo $thiep_gui['guithiep_tieude'];?></h2>
                    <img src="<?php echo $thiep_gui['guithiep_hinh'];?>" width="500"/>
                    <br/><br/>
                    <span id="noidungthiep"><?php echo $thiep_gui['guithiep_noidung'];?></span>
                    <br/>
                </td>
            </tr>
        </table>
        <?php
        }
        ?>
    </div>
</div>
<?php
include 'footer.inc';
?>
